<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@page import="com.iwords.service.object.SysLibWordsEntity"%>
<%@page import="com.iwords.service.object.HotSentencesEntity"%>
<%@page import="com.iwords.service.object.ExamSentencesEntity"%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>词句匹配</title>
</head>
<body>
<form name="pipei" action="wordsManager" method="post">单词 <br>




<%
	SysLibWordsEntity word = (SysLibWordsEntity) request.getAttribute("word");
	if (word != null) {
%> <input type="hidden" name="wordid" id="wordid"
	value=<%=word.getWordid()%>> <span style="color: red;">
<%=word.getSpelling()%> </span>
<table border=0>
	<tr>
		<td>音标</td>
		<td><input type="text" id="phonetics" name="phonetics"
			value=<%=word.getPhonetics()%>></td>
	</tr>
	<tr>
		<td>意思</td>
		<td><input type="text" id="meaning" name="meaning"
			value=<%=word.getMeaning()%>></td>
	</tr>

	<%
		}
	%>


</table>

<br>
已匹配的句子 <br>
<br>

<%
	java.util.List<HotSentencesEntity> selectList = (java.util.List<HotSentencesEntity>) request.getAttribute("selectList");

	if (selectList != null && selectList.size() > 0) {

		for (HotSentencesEntity hot : selectList) {
%> <%=hot.getSentences()%>&nbsp;&nbsp;&nbsp; 翻译<input type="text"
	name=<%=hot.getSentenceid()%> value="<%=hot.getParaphrase()%>">
<input type="checkbox" name="unselect" value=<%=hot.getSentenceid()%> />
删除 <br>
<%
	}
	}
%> <br>
<br>
<br>

未匹配的句子 <br>
<%
	java.util.List<ExamSentencesEntity> unselectList = (java.util.List<ExamSentencesEntity>) request.getAttribute("unSelectList");

	if (unselectList != null && unselectList.size() > 0) {

		for (ExamSentencesEntity hot : unselectList) {
%> <%=hot.getSentence()%>&nbsp;&nbsp;&nbsp; <input type="text"
	name=<%=hot.getSentenceid()%>
	value="<%if (hot.getParaphrase() != null) {
						out.println(hot.getParaphrase());
					}%>">
<input type="checkbox" name="getselect" value=<%=hot.getSentenceid()%> />
选中 <br>
<%
	}
	}
%> <br>
<br>
<br>

<input type="hidden" name="toPage"
	value="<%=request.getAttribute("toPage")%>"> <input
	type="hidden" name="type" value="updatepipei" /> <input type="submit"
	value="提交" /></form>
</body>
</html>